.class public Lcom/esfile/screen/recorder/player/PlayerActivity;
.super Lcom/esfile/screen/recorder/base/BaseActivity;
.source "PlayerActivity.java"

# interfaces
.implements Lcom/esfile/screen/recorder/player/h$c;


# instance fields
.field private a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

.field private b:Landroid/view/View;

.field private c:I

.field private d:Z

.field private e:Ljava/lang/String;

.field private f:Ljava/lang/String;

.field private g:Landroid/net/Uri;

.field private h:Z

.field private i:Z

.field private j:Z

.field private k:Z

.field private l:Lcom/esfile/screen/recorder/provider/entity/b;

.field private m:Landroid/content/BroadcastReceiver;

.field n:Z

.field o:Z


# direct methods
.method public constructor <init>()V
    .locals 2

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->d:Z

    const/4 v1, 0x1

    .line 3
    iput-boolean v1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->i:Z

    .line 4
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->k:Z

    .line 5
    new-instance v1, Lcom/esfile/screen/recorder/player/PlayerActivity$f;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/player/PlayerActivity$f;-><init>(Lcom/esfile/screen/recorder/player/PlayerActivity;)V

    iput-object v1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->m:Landroid/content/BroadcastReceiver;

    .line 6
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->n:Z

    .line 7
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->o:Z

    return-void
.end method

.method private A()V
    .locals 0

    return-void
.end method

.method private B()V
    .locals 0

    return-void
.end method

.method private C()V
    .locals 0

    return-void
.end method

.method private D()V
    .locals 0

    return-void
.end method

.method private E()V
    .locals 0

    return-void
.end method

.method private F()V
    .locals 2

    const/4 v0, 0x0

    .line 1
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->h:Z

    .line 2
    iget v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->c:I

    if-lez v0, :cond_0

    .line 3
    iget-object v1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    invoke-virtual {v1, v0}, Lcom/esfile/screen/recorder/player/DuVideoPlayer;->b(I)V

    .line 4
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->d:Z

    if-eqz v0, :cond_0

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/player/DuVideoPlayer;->j()V

    :cond_0
    return-void
.end method

.method private G()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->n:Z

    xor-int/lit8 v0, v0, 0x1

    return v0
.end method

.method private H()V
    .locals 2

    .line 1
    :try_start_0
    invoke-static {p0}, Landroidx/localbroadcastmanager/content/LocalBroadcastManager;->getInstance(Landroid/content/Context;)Landroidx/localbroadcastmanager/content/LocalBroadcastManager;

    move-result-object v0

    iget-object v1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->m:Landroid/content/BroadcastReceiver;

    invoke-virtual {v0, v1}, Landroidx/localbroadcastmanager/content/LocalBroadcastManager;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 2
    sget-boolean v1, Les/u6;->a:Z

    if-eqz v1, :cond_0

    .line 3
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_0
    :goto_0
    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/player/PlayerActivity;)Ljava/lang/String;
    .locals 0

    .line 2
    iget-object p0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->f:Ljava/lang/String;

    return-object p0
.end method

.method private a(II)V
    .locals 0

    if-lt p1, p2, :cond_0

    if-eqz p1, :cond_0

    if-eqz p2, :cond_0

    const/4 p1, 0x0

    .line 34
    invoke-virtual {p0, p1}, Landroid/app/Activity;->setRequestedOrientation(I)V

    goto :goto_0

    :cond_0
    const/4 p1, 0x1

    .line 35
    invoke-virtual {p0, p1}, Landroid/app/Activity;->setRequestedOrientation(I)V

    :goto_0
    return-void
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    .locals 2

    .line 36
    sget-boolean v0, Les/u6;->a:Z

    if-eqz v0, :cond_1

    .line 37
    invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    goto :goto_0

    .line 38
    :cond_0
    new-instance p0, Ljava/lang/IllegalArgumentException;

    const-string p1, "Argument from must not be null"

    invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p0

    .line 39
    :cond_1
    :goto_0
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/esfile/screen/recorder/player/PlayerActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "path"

    .line 40
    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string p1, "from"

    .line 41
    invoke-virtual {v0, p1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const/high16 p1, 0x14000000

    .line 42
    invoke-virtual {v0, p1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 43
    invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method private a(Landroid/content/Intent;)V
    .locals 2

    .line 4
    invoke-virtual {p1}, Landroid/content/Intent;->getType()Ljava/lang/String;

    move-result-object v0

    .line 5
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_1

    const-string v1, "video"

    invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 6
    invoke-virtual {p1}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object p1

    if-eqz p1, :cond_2

    .line 7
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->g:Landroid/net/Uri;

    .line 8
    invoke-static {p0, p1}, Les/rc;->b(Landroid/content/Context;Landroid/net/Uri;)Ljava/lang/String;

    move-result-object p1

    .line 9
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 10
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->f:Ljava/lang/String;

    goto :goto_0

    .line 11
    :cond_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->g:Landroid/net/Uri;

    invoke-virtual {p1}, Landroid/net/Uri;->getPath()Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->f:Ljava/lang/String;

    goto :goto_0

    :cond_1
    const-string v0, "path"

    .line 12
    invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->f:Ljava/lang/String;

    const/4 v0, 0x0

    .line 13
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->i:Z

    .line 14
    invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object p1

    invoke-virtual {p1}, Landroid/net/Uri;->getScheme()Ljava/lang/String;

    move-result-object p1

    .line 15
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_2

    invoke-virtual {p1}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object p1

    const-string v0, "http"

    invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_2

    const/4 p1, 0x1

    .line 16
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->k:Z

    .line 17
    :cond_2
    :goto_0
    new-instance p1, Ljava/io/File;

    iget-object v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->f:Ljava/lang/String;

    invoke-direct {p1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-static {p0, p1}, Les/lb;->b(Landroid/content/Context;Ljava/io/File;)Lcom/esfile/screen/recorder/provider/entity/a;

    move-result-object p1

    if-eqz p1, :cond_3

    .line 18
    invoke-static {p1}, Les/mb;->a(Lcom/esfile/screen/recorder/provider/entity/a;)Lcom/esfile/screen/recorder/provider/entity/b;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->l:Lcom/esfile/screen/recorder/provider/entity/b;

    :cond_3
    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/player/PlayerActivity;II)V
    .locals 0

    .line 3
    invoke-direct {p0, p1, p2}, Lcom/esfile/screen/recorder/player/PlayerActivity;->a(II)V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/player/PlayerActivity;Landroid/content/Intent;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/player/PlayerActivity;->a(Landroid/content/Intent;)V

    return-void
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/player/PlayerActivity;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->j:Z

    return p0
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/player/PlayerActivity;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/PlayerActivity;->B()V

    return-void
.end method

.method static synthetic d(Lcom/esfile/screen/recorder/player/PlayerActivity;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->k:Z

    return p0
.end method

.method static synthetic e(Lcom/esfile/screen/recorder/player/PlayerActivity;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/PlayerActivity;->w()V

    return-void
.end method

.method static synthetic f(Lcom/esfile/screen/recorder/player/PlayerActivity;)Ljava/lang/String;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->e:Ljava/lang/String;

    return-object p0
.end method

.method private f(I)V
    .locals 5

    const/16 v0, 0xc8

    if-ne p1, v0, :cond_0

    const p1, 0x1040015

    goto :goto_0

    :cond_0
    const p1, 0x1040011

    .line 4
    :goto_0
    new-instance v0, Lcom/esfile/screen/recorder/ui/a;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/ui/a;-><init>(Landroid/content/Context;)V

    const/4 v1, 0x0

    .line 5
    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/ui/a;->b(Z)V

    .line 6
    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/ui/a;->a(Z)V

    .line 7
    invoke-virtual {p0}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    .line 8
    invoke-static {v2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v2

    sget v3, Les/y4;->durec_emoji_dialog_layout:I

    const/4 v4, 0x0

    .line 9
    invoke-virtual {v2, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    .line 10
    sget v3, Les/x4;->emoji_icon:I

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ImageView;

    .line 11
    sget v4, Les/w4;->durec_system_lacked_dialog_warn:I

    invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 12
    sget v3, Les/x4;->emoji_title:I

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    const/16 v4, 0x8

    invoke-virtual {v3, v4}, Landroid/view/View;->setVisibility(I)V

    .line 13
    sget v3, Les/x4;->emoji_message:I

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 14
    invoke-virtual {v3, p1}, Landroid/widget/TextView;->setText(I)V

    .line 15
    invoke-virtual {v0, v2}, Lcom/esfile/screen/recorder/ui/a;->a(Landroid/view/View;)V

    const p1, 0x1040010

    .line 16
    new-instance v2, Lcom/esfile/screen/recorder/player/PlayerActivity$d;

    invoke-direct {v2, p0}, Lcom/esfile/screen/recorder/player/PlayerActivity$d;-><init>(Lcom/esfile/screen/recorder/player/PlayerActivity;)V

    invoke-virtual {v0, p1, v2}, Lcom/esfile/screen/recorder/ui/a;->b(ILandroid/content/DialogInterface$OnClickListener;)V

    .line 17
    new-instance p1, Lcom/esfile/screen/recorder/player/PlayerActivity$e;

    invoke-direct {p1, p0}, Lcom/esfile/screen/recorder/player/PlayerActivity$e;-><init>(Lcom/esfile/screen/recorder/player/PlayerActivity;)V

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/ui/a;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V

    .line 18
    invoke-virtual {v0, v1}, Landroid/app/Dialog;->setCanceledOnTouchOutside(Z)V

    .line 19
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/ui/a;->show()V

    return-void
.end method

.method private f(Z)V
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->b:Landroid/view/View;

    if-eqz v0, :cond_1

    if-eqz p1, :cond_0

    const/4 p1, 0x0

    goto :goto_0

    :cond_0
    const/4 p1, 0x4

    .line 3
    :goto_0
    invoke-virtual {v0, p1}, Landroid/view/View;->setVisibility(I)V

    :cond_1
    return-void
.end method

.method static synthetic g(Lcom/esfile/screen/recorder/player/PlayerActivity;)Lcom/esfile/screen/recorder/player/DuVideoPlayer;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    return-object p0
.end method

.method private g(Z)V
    .locals 1

    if-nez p1, :cond_0

    const/16 p1, 0xf07

    goto :goto_0

    :cond_0
    const/16 p1, 0x700

    .line 2
    :goto_0
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/view/View;->setSystemUiVisibility(I)V

    return-void
.end method

.method static synthetic h(Lcom/esfile/screen/recorder/player/PlayerActivity;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/PlayerActivity;->D()V

    return-void
.end method

.method static synthetic i(Lcom/esfile/screen/recorder/player/PlayerActivity;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/PlayerActivity;->E()V

    return-void
.end method

.method static synthetic j(Lcom/esfile/screen/recorder/player/PlayerActivity;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/PlayerActivity;->C()V

    return-void
.end method

.method private v()V
    .locals 0

    return-void
.end method

.method private w()V
    .locals 2

    .line 1
    sget v0, Les/x4;->media_player:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    iput-object v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    .line 2
    sget v0, Les/x4;->media_controller_loading:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->b:Landroid/view/View;

    .line 3
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->i:Z

    if-eqz v0, :cond_0

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    iget-object v1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->g:Landroid/net/Uri;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/player/DuVideoPlayer;->setVideoURI(Landroid/net/Uri;)V

    goto :goto_0

    .line 5
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    iget-object v1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->f:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/player/DuVideoPlayer;->setVideoPath(Ljava/lang/String;)V

    .line 6
    :goto_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/player/DuVideoPlayer;->j()V

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    invoke-virtual {v0, p0}, Lcom/esfile/screen/recorder/player/h;->setOnControllerVisibilityChangeListener(Lcom/esfile/screen/recorder/player/h$c;)V

    .line 8
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    new-instance v1, Lcom/esfile/screen/recorder/player/a;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/player/a;-><init>(Lcom/esfile/screen/recorder/player/PlayerActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/player/DuVideoPlayer;->setOnErrorListener(Lcom/esfile/screen/recorder/player/DuVideoView$h;)V

    .line 9
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    new-instance v1, Lcom/esfile/screen/recorder/player/g;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/player/g;-><init>(Lcom/esfile/screen/recorder/player/PlayerActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/player/DuVideoPlayer;->setOnBackClickListener(Landroid/view/View$OnClickListener;)V

    .line 10
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->k:Z

    if-nez v0, :cond_1

    .line 11
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    new-instance v1, Lcom/esfile/screen/recorder/player/e;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/player/e;-><init>(Lcom/esfile/screen/recorder/player/PlayerActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/player/DuVideoPlayer;->setOnCutClickListener(Landroid/view/View$OnClickListener;)V

    .line 12
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    new-instance v1, Lcom/esfile/screen/recorder/player/b;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/player/b;-><init>(Lcom/esfile/screen/recorder/player/PlayerActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/player/DuVideoPlayer;->setOnShareClickListener(Landroid/view/View$OnClickListener;)V

    .line 13
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->i:Z

    if-nez v0, :cond_2

    .line 14
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    new-instance v1, Lcom/esfile/screen/recorder/player/d;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/player/d;-><init>(Lcom/esfile/screen/recorder/player/PlayerActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/player/DuVideoPlayer;->setOnDeleteClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_1

    .line 15
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    new-instance v1, Lcom/esfile/screen/recorder/player/c;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/player/c;-><init>(Lcom/esfile/screen/recorder/player/PlayerActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/player/DuVideoPlayer;->setOnInfoListener(Landroid/media/MediaPlayer$OnInfoListener;)V

    .line 16
    :cond_2
    :goto_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    new-instance v1, Lcom/esfile/screen/recorder/player/f;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/player/f;-><init>(Lcom/esfile/screen/recorder/player/PlayerActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/player/DuVideoPlayer;->setOnPreparedListener(Landroid/media/MediaPlayer$OnPreparedListener;)V

    .line 17
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    new-instance v1, Lcom/esfile/screen/recorder/player/PlayerActivity$b;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/player/PlayerActivity$b;-><init>(Lcom/esfile/screen/recorder/player/PlayerActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/player/DuVideoPlayer;->setOnCompletionListener(Landroid/media/MediaPlayer$OnCompletionListener;)V

    .line 18
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    new-instance v1, Lcom/esfile/screen/recorder/player/PlayerActivity$c;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/player/PlayerActivity$c;-><init>(Lcom/esfile/screen/recorder/player/PlayerActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/player/DuVideoPlayer;->setOnPauseClickListener(Landroid/view/View$OnClickListener;)V

    .line 19
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/player/h;->d()V

    return-void
.end method

.method private x()V
    .locals 2

    .line 1
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->h:Z

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    if-nez v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 v1, 0x1

    .line 2
    iput-boolean v1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->h:Z

    .line 3
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/player/DuVideoPlayer;->getCurrentPosition()I

    move-result v0

    iput v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->c:I

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/player/DuVideoPlayer;->c()Z

    move-result v0

    iput-boolean v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->d:Z

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/player/DuVideoPlayer;->i()V

    :cond_1
    :goto_0
    return-void
.end method

.method private y()V
    .locals 0

    return-void
.end method

.method private z()V
    .locals 3

    .line 1
    new-instance v0, Landroid/content/IntentFilter;

    invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V

    const-string v1, "com.esfile.screen.recorder.action.DELETE_VIDEO"

    .line 2
    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 3
    invoke-static {p0}, Landroidx/localbroadcastmanager/content/LocalBroadcastManager;->getInstance(Landroid/content/Context;)Landroidx/localbroadcastmanager/content/LocalBroadcastManager;

    move-result-object v1

    iget-object v2, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->m:Landroid/content/BroadcastReceiver;

    invoke-virtual {v1, v2, v0}, Landroidx/localbroadcastmanager/content/LocalBroadcastManager;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)V

    return-void
.end method


# virtual methods
.method public synthetic a(Landroid/media/MediaPlayer;)V
    .locals 1

    .line 31
    iget-object p1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    if-eqz p1, :cond_0

    const/4 v0, 0x1

    .line 32
    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/player/DuVideoPlayer;->setPlayBtnVisibility(Z)V

    const/4 p1, 0x0

    .line 33
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/player/PlayerActivity;->f(Z)V

    :cond_0
    return-void
.end method

.method public synthetic a(Landroid/view/View;)V
    .locals 0

    .line 23
    iget-boolean p1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->k:Z

    if-nez p1, :cond_0

    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/PlayerActivity;->G()Z

    .line 24
    :cond_0
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/player/PlayerActivity;->finish()V

    return-void
.end method

.method public synthetic a(Landroid/media/MediaPlayer;II)Z
    .locals 1

    const/16 p1, 0x2bd

    const/4 p3, 0x1

    const/4 v0, 0x0

    if-eq p2, p1, :cond_2

    const/16 p1, 0x2be

    if-eq p2, p1, :cond_0

    goto :goto_0

    .line 25
    :cond_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    if-eqz p1, :cond_1

    .line 26
    invoke-virtual {p1, p3}, Lcom/esfile/screen/recorder/player/DuVideoPlayer;->setPlayBtnVisibility(Z)V

    .line 27
    :cond_1
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/player/PlayerActivity;->f(Z)V

    goto :goto_0

    .line 28
    :cond_2
    iget-object p1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    if-eqz p1, :cond_3

    .line 29
    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/player/DuVideoPlayer;->setPlayBtnVisibility(Z)V

    .line 30
    :cond_3
    invoke-direct {p0, p3}, Lcom/esfile/screen/recorder/player/PlayerActivity;->f(Z)V

    :goto_0
    return v0
.end method

.method public synthetic a(Landroid/media/MediaPlayer;IILjava/lang/String;)Z
    .locals 2

    .line 19
    invoke-direct {p0, p2}, Lcom/esfile/screen/recorder/player/PlayerActivity;->f(I)V

    .line 20
    iget-boolean p1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->k:Z

    if-nez p1, :cond_0

    .line 21
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->f:Ljava/lang/String;

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v0, "_"

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->e:Ljava/lang/String;

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p2, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->f:Ljava/lang/String;

    .line 22
    invoke-static {p2}, Lcom/esfile/screen/recorder/utils/i;->f(Ljava/lang/String;)Z

    move-result p2

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    :cond_0
    const/4 p1, 0x1

    return p1
.end method

.method public synthetic b(Landroid/view/View;)V
    .locals 1

    .line 2
    iget-object p1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->f:Ljava/lang/String;

    const-string v0, "player"

    invoke-static {p0, p1, v0}, Les/ya;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 3
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/player/PlayerActivity;->finish()V

    return-void
.end method

.method public synthetic c(Landroid/view/View;)V
    .locals 1

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/PlayerActivity;->x()V

    .line 3
    iget-object p1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->l:Lcom/esfile/screen/recorder/provider/entity/b;

    if-eqz p1, :cond_0

    .line 4
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/provider/entity/b;->f()Ljava/lang/String;

    move-result-object p1

    iget-object v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->l:Lcom/esfile/screen/recorder/provider/entity/b;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/provider/entity/b;->a()Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, p1, v0}, Les/ac;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    return-void
.end method

.method public d(I)V
    .locals 1

    if-nez p1, :cond_0

    const/4 p1, 0x1

    .line 6
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/player/PlayerActivity;->g(Z)V

    goto :goto_0

    :cond_0
    const/4 v0, 0x4

    if-ne p1, v0, :cond_1

    const/4 p1, 0x0

    .line 7
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/player/PlayerActivity;->g(Z)V

    :cond_1
    :goto_0
    return-void
.end method

.method public synthetic d(Landroid/view/View;)V
    .locals 1

    .line 2
    iget-object p1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/player/DuVideoPlayer;->c()Z

    move-result p1

    iput-boolean p1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->j:Z

    if-eqz p1, :cond_0

    .line 3
    iget-object p1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/player/DuVideoPlayer;->i()V

    .line 4
    :cond_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->f:Ljava/lang/String;

    new-instance v0, Lcom/esfile/screen/recorder/player/i;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/player/i;-><init>(Lcom/esfile/screen/recorder/player/PlayerActivity;)V

    invoke-static {p0, p1, v0}, Les/ya;->a(Landroid/content/Context;Ljava/lang/String;Lcom/esfile/screen/recorder/videos/edit/g$g;)V

    .line 5
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/PlayerActivity;->A()V

    return-void
.end method

.method public finish()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/player/DuVideoPlayer;->k()V

    .line 3
    :cond_0
    invoke-super {p0}, Landroid/app/Activity;->finish()V

    return-void
.end method

.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
    .locals 0

    .line 1
    invoke-super {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->onConfigurationChanged(Landroid/content/res/Configuration;)V

    .line 2
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object p1

    invoke-virtual {p1}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object p1

    invoke-virtual {p1}, Landroid/view/View;->invalidate()V

    .line 3
    iget-object p1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    if-eqz p1, :cond_0

    .line 4
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/player/h;->d()V

    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    .line 1
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/base/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    const/4 p1, 0x1

    .line 2
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/player/PlayerActivity;->g(Z)V

    .line 3
    sget p1, Les/y4;->durec_player_activity:I

    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->setContentView(I)V

    .line 4
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object p1

    const/16 v0, 0x400

    invoke-virtual {p1, v0}, Landroid/view/Window;->addFlags(I)V

    .line 5
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object p1

    const/16 v0, 0x80

    invoke-virtual {p1, v0}, Landroid/view/Window;->addFlags(I)V

    .line 6
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    if-nez p1, :cond_0

    .line 7
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/player/PlayerActivity;->finish()V

    return-void

    .line 8
    :cond_0
    new-instance v0, Lcom/esfile/screen/recorder/player/PlayerActivity$a;

    invoke-direct {v0, p0, p1}, Lcom/esfile/screen/recorder/player/PlayerActivity$a;-><init>(Lcom/esfile/screen/recorder/player/PlayerActivity;Landroid/content/Intent;)V

    invoke-static {v0}, Les/xc;->a(Ljava/lang/Runnable;)V

    const-string v0, "from"

    .line 9
    invoke-virtual {p1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->e:Ljava/lang/String;

    .line 10
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/PlayerActivity;->z()V

    .line 11
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/PlayerActivity;->y()V

    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->onDestroy()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->a:Lcom/esfile/screen/recorder/player/DuVideoPlayer;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/player/DuVideoPlayer;->k()V

    .line 4
    :cond_0
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/PlayerActivity;->H()V

    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2

    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    .line 1
    invoke-virtual {p2}, Landroid/view/KeyEvent;->getAction()I

    move-result v0

    if-nez v0, :cond_0

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/PlayerActivity;->G()Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, "PlayerActivity"

    const-string v1, "back pressed"

    .line 3
    invoke-static {v0, v1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 4
    invoke-super {p0, p1, p2}, Landroidx/appcompat/app/AppCompatActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result p1

    return p1

    .line 5
    :cond_0
    invoke-super {p0, p1, p2}, Landroidx/appcompat/app/AppCompatActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result p1

    return p1
.end method

.method protected onPause()V
    .locals 0

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->onPause()V

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/PlayerActivity;->x()V

    return-void
.end method

.method protected onResume()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->onResume()V

    .line 2
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/player/PlayerActivity;->o:Z

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/player/PlayerActivity;->finish()V

    :cond_0
    return-void
.end method

.method protected onStart()V
    .locals 0

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->onStart()V

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/PlayerActivity;->F()V

    .line 3
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/PlayerActivity;->v()V

    return-void
.end method

.method protected onStop()V
    .locals 0

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->onStop()V

    return-void
.end method

.method public u()Ljava/lang/String;
    .locals 1

    const-string v0, "player"

    return-object v0
.end method
